doc: Add a note about prioritization of GtkStyleProviders
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 7 Feb 2011 20:20:54 +0000 (21:20 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Feb 2011 03:17:56 +0000 (04:17 +0100)
It was unclear in the docs what happened if
gtk_style_context_add_provider() and
gtk_style_context_add_provider_for_screen()
were used with the same priority.

gtk/gtkstylecontext.c

index 45f1417badc04e1d43a56a4fb4d859bc399d0ac3..f005eb15fdf24ca0e13d5d3862a852ca70c718f9 100644 (file)
@@ -1280,6 +1280,10 @@ gtk_style_context_new (void)
  *
  * Adds a style provider to @context, to be used in style construction.
  *
+ * <note><para>If both priorities are the same, A #GtkStyleProvider
+ * added through this function takes precedence over another added
+ * through gtk_style_context_add_provider_for_screen().</para></note>
+ *
  * Since: 3.0
  **/
 void
@@ -1378,6 +1382,10 @@ gtk_style_context_reset_widgets (GdkScreen *screen)
  * GTK+ uses this to make styling information from #GtkSettings
  * available.
  *
+ * <note><para>If both priorities are the same, A #GtkStyleProvider
+ * added through gtk_style_context_add_provider() takes precedence
+ * over another added through this function.</para></note>
+ *
  * Since: 3.0
  **/
 void